<?php
namespace App\Services;

class GetLocation
{
    public function getLocation($location)
    {
        //获取腾讯云第三方请求url
        $url = sprintf(config('tencent_map.get_user_location'),$location,config('tencent_map.key'));
        //通过curl get请求
        $data = Curl::getRequest($url);
        //返回第三方接口返回的数据
        return $data;
    }
}
